package objetivo3;

import java.text.NumberFormat;
import java.util.Locale;

public class Aula46 {

	public static void main(String[] args) {

		float f = 123.4567f;
		
		Locale locEC = new Locale("ec");
		
		NumberFormat [] num = new NumberFormat[4];
		
		num[0] = NumberFormat.getInstance();
		num[1] = NumberFormat.getInstance(locEC);
		num[2] = NumberFormat.getCurrencyInstance();
		num[3] = NumberFormat.getCurrencyInstance(locEC);
		
		for (NumberFormat numberFormat : num) {
			System.out.println(numberFormat.format(f));
		}
		
	}

}
